let ar=[]
let date = new Date()
for(let i =8;i<=19;i++){
    ar.push({time:`${i>9?'':'0'}${i}:00`},{time:`${i>9?'':'0'}${i}:30`})
}
ar.pop()
// console.log(date,ar)

let days = []
let timestamp = date.getTime()
let month = date.getMonth()+1;//月份
let day= date.getDay();//周几
let dateTtime = date.getDate();//日期
console.log(day,month,dateTtime)

let week={
    0:'周日',
    1:'周一',
    2:'周二',
    3:'周三',
    4:'周四',
    5:'周五',
    6:'周六',
    7:'今天',
    8:'明天'
}
function timestampFc(timestamp,index){
  var d = new Date(timestamp);
  var year=d.getFullYear()
  var month=d.getMonth()+1
  var day=d.getDate()
  let nowWeek = d.getDay()
  if(month<10){
      month='0'+month
  }
  if(day<10){
      day='0'+day
  }
  if(index==0){
    nowWeek = 7
  }else if(index==1){
    nowWeek = 8
  }else{
    nowWeek=d.getDay()
  }
  let html=year + "-" + month + "-" +day
    return {
        fullDate:html,
        weekDay:week[nowWeek],
        date:month + "-" +day
    }
  }
let oneDayTime = 1000*24*60*60
  //console.log(timestampFc(timestamp + oneDayTime),oneDayTime)
  let someDay =[]
  for(let i = 0;i<7;i++){
    someDay.push(timestampFc((timestamp + oneDayTime *i),i))
  }
  console.log(someDay)